﻿using System.ComponentModel.DataAnnotations;

namespace LERP.Web.Controllers.ViewModels.AccountViewModels
{
    public class LoginModel
    {
        [Required(ErrorMessage = "{0}不可为空")]
        [StringLength(30, ErrorMessage = "{0}不能大于{1}个字符")]
        [Display(Name = "登录名")]
        public string UserName { get; set; }
         
        [DataType(DataType.Password)]
        [Required(ErrorMessage = "{0}不可为空")]
        [StringLength(30, ErrorMessage = "{0}不能大于{1}个字符")]
        [Display(Name = "用户密码")]
        public string Password { get; set; }
    }

    
}